package o;

import android.net.Uri;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.upstream.DataSpec;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public final class alt implements alj {
    private Uri ˊ = Uri.EMPTY;
    private final alj ˋ;
    private long ˎ;
    private Map<String, List<String>> ˏ = Collections.emptyMap();

    public alt(alj o_alj) {
        this.ˋ = (alj) amm.ॱ(o_alj);
    }

    public long ˏ() {
        return this.ˎ;
    }

    public Uri ˋ() {
        return this.ˊ;
    }

    public Map<String, List<String>> ʻ() {
        return this.ˏ;
    }

    public void ॱ(alx o_alx) {
        this.ˋ.ॱ(o_alx);
    }

    public long ˋ(DataSpec dataSpec) throws IOException {
        this.ˊ = dataSpec.ˎ;
        this.ˏ = Collections.emptyMap();
        long ˋ = this.ˋ.ˋ(dataSpec);
        this.ˊ = (Uri) amm.ॱ(ˊ());
        this.ˏ = ˎ();
        return ˋ;
    }

    public int ˋ(byte[] bArr, int i, int i2) throws IOException {
        int ˋ = this.ˋ.ˋ(bArr, i, i2);
        if (ˋ != -1) {
            this.ˎ += (long) ˋ;
        }
        return ˋ;
    }

    @Nullable
    public Uri ˊ() {
        return this.ˋ.ˊ();
    }

    public Map<String, List<String>> ˎ() {
        return this.ˋ.ˎ();
    }

    public void ॱ() throws IOException {
        this.ˋ.ॱ();
    }
}
